function startRequest()
{
  tfUserText = document.getElementById('tfUser').value;
  tfPassText = document.getElementById('tfPass').value;
  var btnWejdz = document.getElementById('btnWejdz');
  btnWejdz.disabled = true;

  passHash = hex_sha1(tfPassText);
  url = "http://localhost/dane.php?user=" + tfUserText;
  url += "&pass=" + passHash;
  url = encodeURI(url);

  startGETRequest(url, onComplete, onEnd);
}
